<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Chameleon-Mini: Buttons</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Chameleon-Mini
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="index.html">index</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">Buttons </div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><p>For user interaction, ChameleonMini provides two configurable push buttons, i.e., LBUTTON on the left side and RBUTTON on the right side of Chameleon. Chameleon distinguishes between</p><ol type="1">
<li>a short (&lt; ~1.28 s) press of the button and</li>
<li>a long (&ge; ~1.28 s) press of the button.</li>
</ol>
<p>Thus, there are four different commands for configuring the buttons:</p><ol type="1">
<li><code>LBUTTON</code></li>
<li><code>RBUTTON</code></li>
<li><code>LBUTTON_LONG</code></li>
<li><code>RBUTTON_LONG</code></li>
</ol>
<p>Each of these commands can be used in the getting ("?"), setting ("=") and suggesting ("=?") version.</p>
<h1>Supported Configurations </h1>
<p>The following table describes all currently implemented options for the button configuration. </p><table class="doxtable">
<tr>
<th>Configuration name </th><th>Description  </th></tr>
<tr>
<td><code>NONE</code> </td><td>No function, the button is disabled </td></tr>
<tr>
<td><code>UID_RANDOM</code> </td><td>Sets a random UID for the current card slot. </td></tr>
<tr>
<td><code>UID_LEFT_INCREMENT</code> </td><td>Increments the UID for the current card slot. The UID is interpreted as little-endian. </td></tr>
<tr>
<td><code>UID_RIGHT_INCREMENT</code></td><td>Increments the UID for the current card slot. The UID is interpreted as big-endian. </td></tr>
<tr>
<td><code>UID_LEFT_DECREMENT</code> </td><td>Decrements the UID for the current card slot. The UID is interpreted as little-endian. </td></tr>
<tr>
<td><code>UID_RIGHT_DECREMENT</code></td><td>Decrements the UID for the current card slot. The UID is interpreted as big-endian. </td></tr>
<tr>
<td><code>CYCLE_SETTINGS</code> </td><td>Cycles through the slots/settings. If the configuration of a slot is set to <code>NONE</code>, this slot is skipped. When the last slot is reached, the next button press selects the first slot, again. </td></tr>
<tr>
<td><code>STORE_MEM</code> </td><td>Stores the current setting into the permanent Flash memory. Equivalent to the <code>STORE</code> command. </td></tr>
<tr>
<td><code>RECALL_MEM</code> </td><td>Recalls a setting from the permanent Flash memory. Equivalent to the <code>RECALL</code> command. </td></tr>
<tr>
<td><code>TOGGLE_FIELD</code> </td><td>Activates the reader field if it was deactivated, deactivates the reader field if it was activated. </td></tr>
<tr>
<td><code>STORE_LOG</code> </td><td>Writes the current log from SRAM to FRAM and clears the SRAM log. Equivalent to the <code>STORE_LOG</code> command. </td></tr>
</table>
<p>Note the UID commands have no effect when the slot is configured as reader. </p>
</div></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Wed Jan 17 2018 21:05:32 for Chameleon-Mini by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>
